package com.whmnx.my.ui.viewmodel;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.whmnx.base.bean.TolalBean;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.base.ItemViewModel;

/**
 * author : huang
 * date   : 2020/9/24 0024 15:32
 * version: 1.0
 * @author Administrator
 */
public class TotalItemViewModel extends ItemViewModel {

    public ObservableField<String> productName = new ObservableField<>("");
    public ObservableField<String> money = new ObservableField<>("");
    public ObservableField<String> OrderDate = new ObservableField<>("");

    public TotalItemViewModel(@NonNull BaseViewModel viewModel, TolalBean.ListBean listBean) {
        super(viewModel);
        OrderDate.set(listBean.getOrderDate());
        productName.set(listBean.getProductMoneyModel().get(0).getProductName());
        money.set("￥" + listBean.getProductMoneyModel().get(0).getMoney());
    }


}
